import axios from '@/api/fetch';
import SERVER from '@/api/server';

export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/ttVsMonthTarget/getCompletionAnalysis`, params);

export const getAreaList = (params) => axios.post(`${SERVER.CMSCLOUD_CHANNEL}/message/dealerAttach/getAreaBatch`, params);

//获取车系列表
export const getSeriesList = (params) => axios.get(`${SERVER.WHOLESALES}/ttVsMonthTarget/getSeriesList`)
// 获取车型列表
export const getModelList = (params) => axios.get(`${SERVER.WHOLESALES}/ttVsMonthTarget/getModelListBySeriesId`,{ params })

export const exportList = params =>
    axios.post(`${SERVER.WHOLESALES}/ttVsMonthTarget/exportCompletionAnalysis`, params, {
        responseType: 'blob'
    });